﻿using GalaSoft.MvvmLight;
using LiveCharts;
using LiveCharts.Wpf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CMS.ViewModel
{
    public class IndexViewModel : ViewModelBase
    {

        public IndexViewModel()
        {

        }

        private IChartValues cargoChartValues = new ChartValues<double>();
        /// <summary>
        /// 物资的报表值
        /// </summary>
        public IChartValues CargoChartValues
        {
            get { return cargoChartValues; }
            set { cargoChartValues = value; RaisePropertyChanged(); }
        }

        private List<string> cargoLabels = new List<string>();
        /// <summary>
        /// 物资的X轴标签
        /// </summary>
        public List<string> CargoLabels
        {
            get { return cargoLabels; }
            set { cargoLabels = value; RaisePropertyChanged(); }
        }

        /// <summary>
        /// 饼图
        /// </summary>
        public SeriesCollection PieSeries {  get; set; } = new SeriesCollection();

        private IChartValues memberChartValues = new ChartValues<int>();
        /// <summary>
        /// 用户操作的流水数据报表值
        /// </summary>
        public IChartValues MemberChartValues
        {
            get { return memberChartValues; }
            set { memberChartValues = value; RaisePropertyChanged(); }
        }

        private List<string> memberLabels = new List<string>();
        /// <summary>
        /// 用户操作的流水数据X轴标签
        /// </summary>
        public List<string> MemberLabels
        {
            get { return memberLabels; }
            set { memberLabels = value; RaisePropertyChanged(); }
        }

        /// <summary>
        /// 曲线报表
        /// </summary>
        public SeriesCollection LineSeries { get; set; } = new SeriesCollection();

        /// <summary>
        /// 取消报表的标签
        /// </summary>
        public AxesCollection LineAxisX {  get; set; } = new AxesCollection();
    }
}
